﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace ProDivingJudge2salmon14
{
    public class DataManager : IDataManager
    {
        public string diveCode { get; set; }
        public string judgeName { get; set; }
        public int judgeID { get; set; }
        public bool isReceivedNewData { get; set; }
        public string diveOrder { get; set; }

        public string judgeLayout { get; set; }

        public DataManager() 
        {
            this.diveCode = "";
            this.judgeName = "";
            this.judgeID = 0;
            this.judgeLayout = "Mouse";
            this.isReceivedNewData = false;
            this.diveOrder = "0/0";
        }

        public string GetDiveOrder() 
        {
            return this.diveOrder;
        }

        public bool GetIsReceivedNewData() 
        {
            return this.isReceivedNewData;
        }

        public void SetIsReceivedNewData(bool isReceivedNewData) 
        {
            this.isReceivedNewData = isReceivedNewData;
        }

        public void SetEmptyDiveCode() 
        {
            this.diveCode = "";
        }

        public string GetDiveCode() 
        {
            return this.diveCode;
        }

        public string GetJudgeName() 
        {
            return this.judgeName;
        }

        public void SetJudgeName(string judgeName) 
        {
            this.judgeName = judgeName;
        }

        public int GetJudgeID() 
        {
            return this.judgeID;
        }

        public void SetJudgeID(int judgeID) 
        {
            this.judgeID = judgeID;
        }

        public string GetJudgeLayout()
        {
            return this.judgeLayout;
        }

        public void SetJudgeLayout(string judgeLayout) 
        {
            this.judgeLayout = judgeLayout;
        }
    }
}
